import {request} from "../common/js/request.js"
const getOrdersPage= (data) =>{
	return request({
		url:'/orders/detail',
		method:'GET',
		data
	});
}
const getOrders= (data) =>{
	return request({
		url:'/orders',
		method:'GET',
		data
	});
}
const updateOrder= (data) =>{
	return request({
		url:'/orders',
		method:'put',
		data
	});
}
const addOrder= (data) =>{
	return request({
		url:'/orders',
		method:'post',
		data
	});
}
const deleteOrder= (data) =>{
	return request({
		url:'/orders',
		method:'delete',
		data
	});
}
const addOrderPlus=(data)=>{
	return request({
		url:'/orders/carts',
		method:'post',
		data
	});
}
export{
	getOrdersPage,getOrders,addOrder,deleteOrder,addOrderPlus,updateOrder
}